package cn.mntool.demo.controller;

import cn.mntool.custom.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * describe: 测试
 *
 * @author lianying
 * @date 2020/07/18
 */
@RestController
public class TestController {
    @Autowired
    TestService testService;

    @GetMapping("/test/{source}")
    public String test(@PathVariable("source")String source){
        return testService.handle(source);
    }
}
